<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Environment variables: GNOME Data Access 5 manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="index.html" title="GNOME Data Access 5 manual">
<link rel="up" href="gda-sql-manual-icommands.html" title="Detailed features">
<link rel="prev" href="ch42s03.html" title="Embedded HTTP server">
<link rel="next" href="part_providers.html" title="Part VIII. Databases providers for developers">
<meta name="generator" content="GTK-Doc V1.32 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts"></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="gda-sql-manual-icommands.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="ch42s03.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="part_providers.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="sect1">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="id-1.8.7.6"></a>Environment variables</h2></div></div></div>
<p>
      Several environment variables can be used to customize the behaviour of the console tool (added
      to the <a class="link" href="init_config.html#libgda_env_variables" title="Configuring Libgda with environment variables">general <span class="application">Libgda</span>'s environment variables</a>):
      </p>
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem"><p>Upon starting, if the <code class="envar">GDA_SQL_CNC</code> environment variable is defined,
	    the console tool will try to open a connection using its contents as connection string.
	</p></li>
<li class="listitem"><p>The external editor used by the <span class="command"><strong>.e</strong></span> command is determined by the first value
	    present in the <code class="envar">GDA_SQL_EDITOR</code>, <code class="envar">EDITOR</code> or <code class="envar">VISUAL</code>
	    environment variables (in that order), and defaults to "vi" under Unix and "notepad.exe" under Windows.
	</p></li>
<li class="listitem"><p>The pager used when the data to display is more than one screen is determined by
	    the value of the <code class="envar">PAGER</code> environment variable and defaults to "more" if none is defined.
	    The paging feature can be completely disabled if the <code class="envar">GDA_NO_PAGER</code> is defined.</p></li>
<li class="listitem"><p>When the <span class="command"><strong>.graph</strong></span> is run, and if the GraphViz's <span class="command"><strong>dot</strong></span> is found,
	    the console tool will convert the graph to a PNG file and display it using the external viewer 
	    identified by the contents of the <code class="envar">GDA_SQL_VIEWER_PNG</code> variable if defined (or convert it to a PDF
	    and display it using the external viewer 
	    identified by the contents of the <code class="envar">GDA_SQL_VIEWER_PDF</code> variable if defined).
	</p></li>
<li class="listitem"><p>The command line history file is defined by the contents of the <code class="envar">GDA_SQL_HISTFILE</code>
	    environment variable. If its contents is set to "NO_HISTORY" then no history will be kept.</p></li>
</ul></div>
<p>
    </p>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.32</div>
</body>
</html>